package com.gxa.community.core.pojo.vo.goodsvo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author gxa
 * @since 2022-07-18
 */
@TableName("query_goods_classs")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class GoodsVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("商品编号")
    private String nos;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("商品分类")
    private String classs;
    @ApiModelProperty("商品标签")
    private String tag;
    @ApiModelProperty("商品图片")
    private String pic;
    @ApiModelProperty("库存")
    private Integer num;
    @ApiModelProperty("销售价")
    private BigDecimal actualPrice;
    @ApiModelProperty("原价")
    private BigDecimal originalPrice;
    @ApiModelProperty("商品状态 1启用 2禁用")
    @JsonIgnore
    private Integer status;

}
